<?php
/**
 * xysc users Version1.0
 * ==================================
 * Copy 2016-2017
 * Web:www.xjh7.com
 * ==================================
 * Author:lj
 * Date:2016-03-18
*/

	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>轩辕商城-后台</title>
<link rel="stylesheet" type="text/css" href="<?php echo backweb_CSS_URL;?>index.css" />
<link rel="stylesheet" type="text/css" href="<?php echo backweb_CSS_URL;?>common.css" />
<script type="text/javascript" src="<?php echo backweb_JS_URL;?>jquery.js"></script>
<script type="text/javascript">
	function back()
	{
		window.location.href="./index.php?r=backweb/role/role";
	}
</script>
</head>
<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="#">首页</a></li>
			<li><a href="#">系统管理</a></li>
			<li><a href="#">角色管理</a></li>
			<li><a href="#">配置权限</a></li>
		</ul>
	</div>
	  <div id="table" style="margin: 10px">
	  	 <form  name="form1" method="post" action="./index.php?r=backweb/role/updatePower&role_id=<?php echo $role_id;?>" >
      		 <div >
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
                <tr>
                   <th width="80">序号</th>                
                   <th>模块</th>
                   <th>菜单</th>              
                </tr>      
                <?php $init=1; foreach($info as $v){ ?>
         	<tr class="tr">
         	   <td class="td_center"><?php echo $init++;?></td>   
         	   <td class="td_center"><?php echo $v['parent_name'];?></td>         
         	   <td class="td_center"> <input type="checkbox" name="power[]" id="power[]" <?php if($v['role_access_id']!=null){?> checked="checked" <?php }?> value="<?php echo $v['pages_id'];?>" /> <?php echo $v['pages_name'];?></td>
             </tr>				
			<?php }?>	        
              </table>    
              <div class="center">
              	  <input type="submit" name="btsave" id="btsave" value="确定" class="btn btn82 btn_save ml25" />				
				  <input type="button" value="取消" class="btn btn82 btn_res ml10" onclick="back()"/>   
              </div>                     
       		 </div>
         </form>    
     </div>	
</body>
</html>